SidebarRow: Unref CloudProvider on change/finalize
authorDaniel Boles <dboles@src.gnome.org>
Tue, 12 Sep 2017 20:56:46 +0000 (21:56 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Mon, 18 Sep 2017 22:30:57 +0000 (23:30 +0100)
commit383fa87993b590f0ee1d36c70e9e949679ddc4b5
tree551c22dbc7469f12da95c84dcbf2ba7d83ceb74b
parentf87dc24867dd54b28d5368925d11203baefd5fb8
SidebarRow: Unref CloudProvider on change/finalize

It was never unref()d, either when replacing the existing GObject in
set_property(), cleaning up in finalize(), or becoming a placeholder.

Fix by using g_set_object() and g_clear_object() to unref as needed.

This also drops the check that the newly set object is a valid cloud
provider account, as we don’t do the equivalent for any of the other
object-typed properties, and Carlos didn’t think this was important.

https://bugzilla.gnome.org/show_bug.cgi?id=787600
gtk/gtksidebarrow.c